@echo off
REM 解决Gitee LFS问题的脚本

echo ========================================
echo      解决Gitee LFS上传问题
echo ========================================
echo.

echo [1/5] 备份当前项目...
if not exist "backup" mkdir backup
xcopy /E /I /Q . backup\

echo [2/5] 创建新的Git仓库...
if exist ".git" rmdir /s /q .git
git init

echo [3/5] 重新配置用户信息...
git config user.name "weiweinews"
git config user.email "13501047+undimensional@user.noreply.gitee.com"

echo [4/5] 删除LFS配置...
if exist ".gitattributes" del ".gitattributes"

echo [5/5] 重新添加文件...
git add .
git commit -m "初始提交: IndexTTS2项目 - 不使用LFS"

echo.
echo ✅ Git仓库重新创建完成！
echo.
echo 💡 接下来手动执行:
echo    git remote add origin https://gitee.com/undimensional/tts.git
echo    git push -u origin main
echo.
pause
